package com.woniuxy01;

import javax.swing.*;

class Aaa{
    int a=5;

    public Aaa() {
        System.out.println("父类无参构造");
    }


    public Aaa(int a) {
        this.a = a;
    }
}

class Bbb extends Aaa{
    int x=1;
    int a=50;
    public Bbb() {
        System.out.println("子类无参构造");
    }

    public Bbb(int x) {
        this.x = x;
    }

    public void test(){
        System.out.println(this.x);
        System.out.println(this.a);
        System.out.println(super.a);

    }
}

public class Test03 {
    public static void main(String[] args) {
        Bbb bbb = new Bbb();
        bbb.test();

    }
}
